#pragma once

#include <iostream>
#include <vector>
typedef void(*fun_t)(); 

void task1()
{
    std::cout << "完成任务1" << std::endl;
}

void task2()
{
    std::cout << "完成任务2" << std::endl;
}

void task3()
{
    std::cout << "完成任务3" << std::endl;
}

void initTasks(std::vector<fun_t>& tasks)
{
     tasks.push_back(task1);
     tasks.push_back(task2);
     tasks.push_back(task3);
}